﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediPlatform.Domain.Order
{
    /// <summary>
    /// 挂号日志表 (可选，用于记录状态变更)
    /// </summary>
    public class RegistrationLog
    {
        /// <summary>
        /// 主键，自增
        /// </summary>
        [Key]
        public long? Id { get; set; }

        /// <summary>
        /// 外键，关联 RegistrationOrder.Id
        /// </summary>
        public long? OrderId { get; set; }

        /// <summary>
        /// 当前状态：0-待支付, 1-已支付, 2-已完成, 3-已取消, 4-已退款
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 操作人员ID，外键关联用户表（如患者、客服等）
        /// </summary>
        public long? OperatorId { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OperateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 操作备注（如取消原因）
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedAt { get; set; } = DateTime.Now;
    }
}
